/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.privat24.api;

import java.util.Date;
import java.util.HashMap;

/**
 *
 * @author dezmond
 */
public class Payment {

    private final long id;
    
    public Payment(){
        this.id = generatePaymentId();
    }
    
    private final HashMap data = new HashMap();

    public void addProperty(Object key, Object value){
        this.data.put(key, value);
    }
    
    public Object get(Object key){
        return this.data.get(key);
    }
    
    public Object[] getKeys(){
        return this.data.keySet().toArray();
    }

    public long getId() {
        return id;
    }
    
    private long generatePaymentId() {
       return new Date().getTime();
    }
}
